 <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
 <link rel="stylesheet" type="text/css" href="style.css" />
 <script src="cufon-yui.js" type="text/javascript"></script>
 <script src="Pristina_400.font.js" type="text/javascript"></script>

<?php
 
  include_once'conn.php';
  if(!empty($_POST['post'])){
  $sql="insert into 'message' set 'username '='".$_POST['username'].",'email'='
  ".$_POST['email']."',content='".$_POST['content']."'";
  $result=mysql_query($sql);
  if($result){
   echo "<script type='text/javascript'>alert('留言成功！');location.href='index.php''
   </script>";
  
   }else{
    echo "<script type='text/javascript'>alert('留言失败！');location.href='index.php'</script>";
    }
    }
    ?> 
    <body>
        <form action="post.php" method="post" >
 <div id="main_container">
     <div class="contact_form">
   
    <!--table border="0" width="500">
    <tr>
        <td width="100" align="right">用户名: </td>
        <td><input type="text" name="username" value=""/></td> 
    </tr>
    <tr>
        <td width="100" align="right">E-mail：</td> 
     <td><input type="text" name="email" value=""/></td>
    </tr>
    
    <tr>
        <td width="100" align="right">留言内容：</td>
        <td><textarea name="content"> </textarea></td> 
    </tr>
    <tr>
        <td colspan="2" align="center"><input type ="submit" name="post" value="留言"/></td>   
    </tr--> 
    <h1>留言板</h1>
        
        <div class="contact_row">
            <label>用户名：</label>
            <input type="text" class="contact_input" name="name" />        
        </div>
        
        
        <div class="contact_row">
            <label>邮箱：</label>
            <input type="text" class="contact_input" name="email" />        
        </div> 
        
       
        <div class="contact_row">
            <label>留言：</label>
            <textarea class="contact_textarea" name="content"></textarea>
        </div> 
         <div class="contact_row">
          <input type="submit" value="提交" class="contact_submit" />
         </div>
     </div>
  </form>
 </div>
 </body>



